{% extends 'base.html' %}
{% from 'bootstrap/form.html' import render_form %}

{% block title %}新建博客{% endblock title %}

{% block content %}
    <h1>创建博客</h1>
    {{ render_form(form) }}
    {% for message in get_flashed_messages() %}
        <div class="alert alert-info alert-dismissible fade show" role="alert">
            <strong>状态:</strong> {{ message }}
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
            </button>
        </div>
    {% endfor %}
{% endblock content %}
